package org.scratchcrew.services;

import org.scratchcrew.domain.BaseEntity;
import org.springframework.transaction.annotation.Transactional;

/**
 * Interface for entity services.
 * 
 * @param <T>
 *            entity type
 */
public interface EntityService<T extends BaseEntity> {
	/**
	 * Deletes entity form the database.
	 * 
	 * @param id
	 *            id of the entity to be deleted.
	 */
	@Transactional
	void delete(Long id);

	@Transactional
	public T find(Long id);

}
